﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ERP.ERPSystem.ProductionSystem.Dto;
using ERP.Team.ProductionSystem;
using ERP.Common.Results;
using Volo.Abp.Application.Services;

namespace ERP.ERPSystem.ProductionSystem
{
    /// <summary>
    /// 生产系统-班组设置
    /// </summary>
    public interface ITeamSetServices : IApplicationService
    {
        /// <summary>
        /// 添加班组设置
        /// </summary>
        /// <param name="teamSetDto"></param>
        /// <returns></returns>
        Task<int> AddTeams(TeamSetDto teamSetDto);

        /// <summary>
        /// 显示班组设置
        /// </summary>
        /// <returns></returns>
        Task<List<TeamSet>> GetTeamSet();

        /// <summary>
        /// 获取单个班组数据
        /// </summary>
        /// <param name="id">班组ID</param>
        /// <returns></returns>
        Task<TeamSet> GetTeamById(int id);

        /// <summary>
        /// 更新班组设置
        /// </summary>
        /// <param name="team">更新数据</param>
        /// <returns></returns>
        Task<bool> UpdateTeam(TeamSet team);

        Task<APIResult<bool>> UpdateTeamSetAsync(TeamSetUpdateDto input);

        Task<APIResult<bool>> DeleteTeamSetAsync(int id);
    }
}
